package com.xmy.cultivate.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.xmy.cultivate.entity.DealInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;

/**
 * <p>
 * 续报成交数据 Mapper 接口
 * </p>
 *
 * @author hpiggy
 * @since 2023-06-17
 */
public interface DealInfoMapper extends BaseMapper<DealInfo> {

    @Select("select SUM(count) as all_count from deal_info ${ew.customSqlSegment}")
    public BigDecimal getAllCount(@Param(Constants.WRAPPER) Wrapper wrapper);
}
